<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit_Student_info</title>
<script type="text/javascript">
		function validateForm() {
			var username=document.forms["editProfileForm"]["firstName"].value;
			var username=document.forms["editProfileForm"]["lastname"].value;
			var username=document.forms["editProfileForm"]["RollNo"].value;
			var username=document.forms["editProfileForm"]["specializationid"].value;
			var username=document.forms["editProfileForm"]["email"].value;
			var username=document.forms["editProfileForm"]["phone"].value;
			
			if (username==null || username=="") {
				document.getElementById("errmsg").innerHTML="username required";
				return false;
			}
			else if(password==null || password=="") {
				document.getElementById("errmsg").innerHTML="password required";
				return false;
			}
			return true;
		}
	</script>
</head>
<body>
<div class="content">

	<s:form name="editProfileForm" action="editProfileSubmit.action" onsubmit="return validateForm()" method="post">
		<s:textfield label="FirstName:" name="firstName" value="%{studentBean.firstName}"  size="30" />
		<s:textfield label="LastName:"  name="lastName"  value="%{studentBean.lastName}"   size="30" />
		<s:textfield label="RollNo:"    name="RollNo"    value="%{studentBean.RollNo}"   size="30" />
		<s:textfield label="Specialization:"  value="%{studentBean.specialization}" disabled="true" size="30" />
		<s:textfield label="Email" name="email"  value="%{studentBean.email}" size="30" />
		<s:textfield label="Phone" name="phone" value="%{studentBean.phone}"  size="30" />
		<s:submit method="execute" label="submit" align="right" />
	</s:form>
	
	
	<%-- <b>Specialization :</b>
    <s:property value="specialization" /> <br>
	<br> --%>
</div>
</body>
</html>